package com.mark.web.bill.entity.from;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @Description: 编辑种类的验证表单
 * @Author: Mark
 * @CreateDate: 2019/2/18 21:16
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
public class EditGoodsCateFrom {

    /**
     * 编辑记录的id
     */
    @Min(value = 1,message = "编辑的种类ID应大于1")
    private Integer id;

    /**
     * 父级种类Id
     */
    @Min(value = 0,message = "父级种类ID需要大于0")
    private Integer parentId;

    /**
     * 种类名
     */
    @NotBlank(message = "加工零件种类名称必填")
    private String goodsCategoryName;

    /**
     * 权重
     */
    @Min(value = 1,message = "权重值应该大于1")
    private Integer priority;

}
